<template>
    <div class="RollingAdsorption">
        <div class="ps">
            代码来源: https://www.douyin.com/video/7244167066327043380
        </div>
        <div class="container">
            <div class="item" style="background-color: aqua;"></div>
            <div class="item" style="background-color: yellow;"></div>
            <div class="item" style="background-color: red;"></div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
        }
    },
    methods: {
    }
}
</script>
<style lang="scss" scoped>
.ps {
    color: gray;
    padding-bottom: 10px;
}

* {
    margin: 0;
    padding: 0;
    font-size: 12px;
    list-style: none;
    text-decoration: none;
}

.container {
    width: 100%;
    height: 500px;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-shrink: 0;
    justify-items: center;
    align-items: center;
    scroll-snap-align: start;
}
</style>